package com.truyen.persistence.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the content_truyen_troll database table.
 * 
 */
@Entity
@Table(name="content_truyen_troll")
public class ContentTruyenTroll implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private String alias;

	@Lob
	private String content;

	private String name;

	//bi-directional many-to-one association to AnhDep
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="truyenTrollItem", nullable=false)
	private TruyenTroll truyenTroll;

	public ContentTruyenTroll() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAlias() {
		return this.alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the truyenTroll
	 */
	public TruyenTroll getTruyenTroll() {
		return truyenTroll;
	}

	/**
	 * @param truyenTroll the truyenTroll to set
	 */
	public void setTruyenTroll(TruyenTroll truyenTroll) {
		this.truyenTroll = truyenTroll;
	}

}